package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseListResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/21/16.
 */
public class CourseFeedbackListResponse extends BaseListResponse<CourseFeedbackListResponse.CourseFeedbackBean>{

    public static class CourseFeedbackBean implements Parcelable {

        /**
         * id : b3ef14bea5584efd90d60f35dc7b9581
         * coursesummaryid : 4028b8815beacce0015beba0a2d1000b
         * content : 啦咯啦咯啦咯
         * userid : ae9d84b0a91d48dab8818082264ae870
         * username : liuchao
         * userimgurl : null
         * mediaobjectlist : [{"url":"http://media.molyfun.com/coursefb/ic_20170511-171724.jpg?imageMogr2/thumbnail/300x300","type":"1","cover":null,"bigurl":"http://media.molyfun.com/coursefb/ic_20170511-171724.jpg?imageMogr2/thumbnail/1280x1280","smallurl":"http://media.molyfun.com/coursefb/ic_20170511-171724.jpg?imageMogr2/thumbnail/100x100","name":null}]
         */

        private String id;
        private String coursesummaryid;
        private String content;
        private String userid;
        private String username;
        private String status;
        private String userimgurl;
        private long createdatetime;
        private List<MediaobjectlistBean> mediaobjectlist;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCoursesummaryid() {
            return coursesummaryid;
        }

        public void setCoursesummaryid(String coursesummaryid) {
            this.coursesummaryid = coursesummaryid;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getUserimgurl() {
            return userimgurl;
        }

        public long getCreatedatetime() {
            return createdatetime;
        }

        public void setCreatedatetime(long createdatetime) {
            this.createdatetime = createdatetime;
        }

        public void setUserimgurl(String userimgurl) {
            this.userimgurl = userimgurl;
        }

        public List<MediaobjectlistBean> getMediaobjectlist() {
            return mediaobjectlist;
        }

        public void setMediaobjectlist(List<MediaobjectlistBean> mediaobjectlist) {
            this.mediaobjectlist = mediaobjectlist;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.coursesummaryid);
            dest.writeString(this.content);
            dest.writeString(this.userid);
            dest.writeString(this.username);
            dest.writeString(this.status);
            dest.writeString(this.userimgurl);
            dest.writeLong(this.createdatetime);
            dest.writeTypedList(this.mediaobjectlist);
        }

        public CourseFeedbackBean() {
        }

        protected CourseFeedbackBean(Parcel in) {
            this.id = in.readString();
            this.coursesummaryid = in.readString();
            this.content = in.readString();
            this.userid = in.readString();
            this.username = in.readString();
            this.status = in.readString();
            this.userimgurl = in.readString();
            this.createdatetime = in.readLong();
            this.mediaobjectlist = in.createTypedArrayList(MediaobjectlistBean.CREATOR);
        }

        public static final Parcelable.Creator<CourseFeedbackBean> CREATOR = new Parcelable.Creator<CourseFeedbackBean>() {
            @Override
            public CourseFeedbackBean createFromParcel(Parcel source) {
                return new CourseFeedbackBean(source);
            }

            @Override
            public CourseFeedbackBean[] newArray(int size) {
                return new CourseFeedbackBean[size];
            }
        };
    }

}